package com.bosssoft.trainee.nontax.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bosssoft.trainee.nontax.common.Result;
import com.bosssoft.trainee.nontax.entity.po.User;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @author MaYunFei
 * @ProjectName RBAC_BOSS
 * @Description TODO
 * @time 2022/6/13 14:16
 */
public interface IUserService extends IService<User> {

    Result<?> login(@RequestBody User userParam);

    Result<?> register(@RequestBody User user);

    Result<?> saveUser(@RequestBody User user);

    Result<?> pass(@RequestBody Map<String, Object> map);

    void changeRole(@RequestBody User user);

    Result<?> update(@PathVariable Long id);

    void updateAvailable(Map<String, Object> map);

    Result<?> countAddress();

    Result<?> findPage(Integer pageNum, Integer pageSize, String search);
}
